﻿namespace Web.Control.WWW.Group
{

    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Lx.Web.Common.ControlsUI;

    /// <summary>
    /// EditGroup 的摘要说明
    /// </summary>
    public class AddTopic : BaseControl
    {
        /// <summary>
        /// 组ID
        /// </summary>
        protected string gid;
        /// <summary>
        /// 组标题
        /// </summary>
        protected string gTitle="";
        protected override void OnLoad(EventArgs e)
        {
            if (HttpContext.Current.User.Identity.Name == "")
            {
                Response.Redirect(LoginHost + "/User/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri.Split('?')[0]);
            }
            if (!string.IsNullOrEmpty(Request["gid"]))
            {
                gid = Request["gid"];
                if (!string.IsNullOrEmpty(Request.Form["Rety"]))
                {
                    gTitle = Request.Form["Rety"];
                }
            }
            else
            {
                Response.End();
            }
            base.OnLoad(e);
        }
    }
}
